package com.business.dynamic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 动态图片 实体类
 * @author chenjiehong
 * @date 2019-12-03 09:24:15
 * @since 1.0
 */
@TableName(value = "dynamic_images")
public class DynamicImages{


    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 动态id
	 */
	@TableField(value = "dynamic_id")
	private Integer dynamicId; 

	/**
	 * 图片url
	 */
	private String url;

	@TableField(value = "create_time" )
	private Date createTime;

	/**
	 * 排序 从小到大
	 */
	private Integer sort;

	// columns END


	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public Integer getDynamicId() {
		return dynamicId;
	}

    public void setDynamicId(Integer dynamicId) {
    	this.dynamicId = dynamicId;
    }
	public String getUrl() {
		return url;
	}

    public void setUrl(String url) {
    	this.url = url;
    }

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[dynamicId:" + getDynamicId() + "]";
		log += "[url:" + getUrl() + "]";
		return log;
	}
}